import React, { Component } from 'react';
import PropTypes from 'prop-types';

import styles from './index.less';

class FileFrame extends Component {

  render() {
    const { file } = this.props;
    return (
      <div className={styles.wrap}>
        <iframe src={file} className={styles.frame}/>
      </div>
    );
  }
}

FileFrame.propTypes = {
  file: PropTypes.string.isRequired,
  type: PropTypes.string.isRequired
}

export default FileFrame;
